﻿@{
    ViewBag.Title = "注册";
    Layout = "~/Views/Shared/_BootstrapUI.cshtml";
}

<div class="login-form">

    <div class="login-content">

        <div class="form-login-error" style="text-align:center">
            <h3>注册</h3>
        </div>
        <input hidden="hidden" id="type" value="@ViewBag.type" />
        <input hidden="hidden" id="token" />
            <div class="form-group">

                <div class="input-group">
                    <div class="input-group-addon">
                        <i class="fa fa-user"></i>
                    </div>
                    <input type="text" class="form-control" name="username" id="username" placeholder="请填写用户名" autocomplete="off" />
                </div>
            </div>
        <div class="form-group">

            <div class="input-group">
                <div class="input-group-addon">
                    <i class="fa fa-user"></i>
                </div>
                <input type="password" class="form-control" name="password" id="password" placeholder="请输入密码" autocomplete="off" />
            </div>
        </div>
            <div class="form-group" id="mobile">
                <div class="input-group">
                    <div class="input-group-addon">
                        <i class="fa fa-phone"></i>
                    </div>
                    <input type="text" class="form-control" name="phoneNum" id="phoneNum" placeholder="请输入手机号码" autocomplete="off" />
                </div>
            </div>

            <div class="row">
                <div class="col-xs-7" style="padding-right:0px">
                    <div class="form-group has-feedback">
                        <div class="input-group">
                            <span class="input-group-addon"><span class="fa fa-mobile"></span></span>
                            <input id="idcode-btn" class="form-control" placeholder="请输入校验码" maxlength="6" type="text">
                        </div>
                        <span style="color:red;display: none;" class="tips"></span>
                        <span style="display: none;" class="glyphicon glyphicon-remove form-control-feedback"></span>
                        <span style="display: none;" class="glyphicon glyphicon-ok form-control-feedback"></span>
                    </div>
                </div>
                <div class="col-xs-5 text-left" style="padding-left: 0px;text-align: left;">
                    <button type="button" id="loadingButton" class="btn btn-primary" autocomplete="off">获取短信校验码</button>
                </div>
            </div>

            <div class="form-group">
                <button  class="btn btn-primary btn-block btn-login" id="register" onclick="Register()">
                    <i class="fa fa-sign-in"></i>
                    注册
                </button>
            </div>
            <!-- Implemented in v1.1.4 -->
            <div class="form-group">
                <i class="fa">已有账号,<a href="Login">去登陆</a></i>
            </div>
    </div>
</div>
<script src="~/Pscripts/WeChat/Index.js?v=@DateTime.Now.ToString("yyyyMMhhmmssfff")"></script>